//
//  UIBarButtonItem+Extensions.swift
//  传智微博
//
//  Created by WZH on 2018/5/31.
//  Copyright © 2018年 WZH. All rights reserved.
//

import UIKit

extension UIBarButtonItem {
    convenience init(title:String ,_ fontSize:CGFloat = 16 ,target:Any, action:Selector) {
        let btn: UIButton = UIButton.cz_textButton(title, fontSize: fontSize, normalColor: UIColor.darkGray, highlightedColor: UIColor.orange)
        btn.addTarget(target, action:action , for: .touchUpInside)
        self.init(customView:btn)
    }
}
